home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
comm2
/
termsorc.lha
/
Extras
/
Source
/
gtlayout-source.lha
/
LTP_Memory.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-24
|
555b
|
32 lines
/* GadTools layout toolkit
**
** Copyright © 1993-1995 by Olaf `Olsen' Barthel
** Freely distributable.
*/
#include "gtlayout_global.h"
APTR __regargs
LTP_Alloc(LayoutHandle *handle,ULONG amount)
{
APTR result;
result = AsmAllocPooled(handle -> Pool,amount,SysBase);
if(!result)
handle -> Failed = TRUE;
return(result);
}
/*****************************************************************************/
VOID __regargs
LTP_Free(LayoutHandle *handle,APTR mem,ULONG memsize)
{
if(mem)
AsmFreePooled(handle -> Pool,mem,memsize,SysBase);
}